package com.ruoyi.project.system.info.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.system.info.domain.BaseFamilyMemberInfo;
import com.ruoyi.project.system.info.mapper.BaseFamilyMemberInfoMapper;
import com.ruoyi.project.system.info.service.IBaseFamilyMemberInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-18
 */
@Service
public class BaseFamilyMemberInfoServiceImpl implements IBaseFamilyMemberInfoService 
{
    @Autowired
    private BaseFamilyMemberInfoMapper baseFamilyMemberInfoMapper;

    @Override
    public BaseFamilyMemberInfo selectBaseFamilyMemberInfoByFidAndName(String fid, String name) {
        return baseFamilyMemberInfoMapper.selectBaseFamilyMemberInfoByFidAndName(fid, name);
    }

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public BaseFamilyMemberInfo selectBaseFamilyMemberInfoById(Integer id)
    {
        return baseFamilyMemberInfoMapper.selectBaseFamilyMemberInfoById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param baseFamilyMemberInfo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<BaseFamilyMemberInfo> selectBaseFamilyMemberInfoList(BaseFamilyMemberInfo baseFamilyMemberInfo)
    {
        return baseFamilyMemberInfoMapper.selectBaseFamilyMemberInfoList(baseFamilyMemberInfo);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param baseFamilyMemberInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertBaseFamilyMemberInfo(BaseFamilyMemberInfo baseFamilyMemberInfo)
    {
        return baseFamilyMemberInfoMapper.insertBaseFamilyMemberInfo(baseFamilyMemberInfo);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param baseFamilyMemberInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateBaseFamilyMemberInfo(BaseFamilyMemberInfo baseFamilyMemberInfo)
    {
        return baseFamilyMemberInfoMapper.updateBaseFamilyMemberInfo(baseFamilyMemberInfo);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBaseFamilyMemberInfoByIds(String ids)
    {
        return baseFamilyMemberInfoMapper.deleteBaseFamilyMemberInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteBaseFamilyMemberInfoById(Integer id)
    {
        return baseFamilyMemberInfoMapper.deleteBaseFamilyMemberInfoById(id);
    }
}
